package org.mch.form.tree;

import javax.swing.tree.DefaultMutableTreeNode;

/**
 * 描述：树节点类；<BR/>
 * 
 * @author ZhangLi；mchweb.net；<BR/>
 *
 */
public class MTreeNode extends DefaultMutableTreeNode {
	private static final long serialVersionUID = -4338165737477930233L;
	private String showText;

	public MTreeNode() {
		super();
	}

	public MTreeNode(Object obj) {
		super(obj);
	}

	public MTreeNode(Object obj, String showText) {
		super(obj);
		this.showText = showText;
	}

	@Override
	public String toString() {
		if (showText == null) {
			return super.toString();
		} else {
			return showText;
		}
	}
}
